home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.sgi < prev    next >
Text File  |  1996-07-05  |  5KB  |  145 lines

  1. /*   ncbilcl.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler
  29. *
  30. * Version Creation Date:   1/1/91
  31. *
  32. * $Revision: 2.8 $
  33. *
  34. * File Description:
  35. *        system dependent header
  36. *       version for Silicon Graphics IRIX(TM) Release 3.3
  37. *
  38. * Modifications:
  39. * --------------------------------------------------------------------------
  40. * Date     Name        Description of modification
  41. * -------  ----------  -----------------------------------------------------
  42. *
  43. *
  44. * ==========================================================================
  45. */
  46. #ifndef _NCBILCL_
  47. #define _NCBILCL_
  48.  
  49. /* PLATFORM DEFINITION FOR Silicon Graphics, Inc. IRIX(TM) Release 4 */
  50.  
  51. #define COMP_SYSV
  52. #define OS_UNIX
  53. #define OS_UNIX_SYSV
  54. #define OS_UNIX_IRIX
  55. #define PROC_MIPS
  56. #define WIN_DUMB
  57.  
  58. /*----------------------------------------------------------------------*/
  59. /*      Desired or available feature list                               */
  60. /*----------------------------------------------------------------------*/
  61. /*#define MPROC_AVAIL*/
  62. #define SYSV_IPC_AVAIL
  63. #define SYSV_STREAMS_AVAIL
  64. #ifdef MPROC_AVAIL
  65. #define SGI_MPROC_AVAIL    /* SGI IRIX multiprocessing is available */
  66. #endif
  67.  
  68. /*----------------------------------------------------------------------*/
  69. /*      #includes                                                       */
  70. /*----------------------------------------------------------------------*/
  71. #include <sys/types.h>
  72. #include <limits.h>
  73. #include <sys/stat.h>
  74. #include <stddef.h>
  75. #include <stdio.h>
  76. #include <ctype.h>
  77. #include <string.h>
  78. #include <malloc.h>
  79. #include <memory.h>
  80. #include <stdlib.h>
  81. #include <math.h>
  82. #include <errno.h>
  83. #include <float.h>
  84. #include <unistd.h>
  85. #ifdef SGI_MPROC_AVAIL
  86. #include <task.h>
  87. #endif
  88.  
  89. /*----------------------------------------------------------------------*/
  90. /*      Missing ANSI-isms                                               */
  91. /*----------------------------------------------------------------------*/
  92. #define noalias    /* "noalias" keyword not accepted by compiler */
  93.  
  94. #ifndef FILENAME_MAX
  95. #define FILENAME_MAX 1024
  96. #endif
  97.  
  98. /*----------------------------------------------------------------------*/
  99. /*      Aliased Logicals, Datatypes                                     */
  100. /*----------------------------------------------------------------------*/
  101.  
  102. /*----------------------------------------------------------------------*/
  103. /*      Misc Macros                                                     */
  104. /*----------------------------------------------------------------------*/
  105. #define PROTO(x)    x
  106. #define VPROTO(x)    x
  107. #define DIRDELIMCHR    '/'
  108. #define DIRDELIMSTR    "/"
  109. #define CWDSTR    "."
  110.  
  111. #define KBYTE    (1024)
  112. #define MBYTE    (1048576)
  113.  
  114. #define IS_BIG_ENDIAN
  115. #define TEMPNAM_AVAIL
  116.  
  117. /*----------------------------------------------------------------------*/
  118. /*      For importing MS_DOS code                                       */
  119. /*----------------------------------------------------------------------*/
  120. #define near
  121. #define far
  122. #define huge
  123. #define cdecl
  124. #define pascal
  125. #define _pascal
  126. #define _near
  127. #define _far
  128. #define _huge
  129. #define _cdecl
  130.  
  131. /*----------------------------------------------------------------------*/
  132. /*      Macros for Floating Point                                       */
  133. /*----------------------------------------------------------------------*/
  134. #define EXP2(x) exp((x)*LN2)
  135. #define LOG2(x) (log(x)*(1./LN2))
  136. #define EXP10(x) exp((x)*LN10)
  137. #define LOG10(x) log10(x)
  138.  
  139. /*----------------------------------------------------------------------*/
  140. /*      Macros Defining Limits                                          */
  141. /*----------------------------------------------------------------------*/
  142. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  143.  
  144. #endif
  145.